package main

import (
	"fmt"
	"time"
)

func main() {
	testDefer()
}
func testDefer() {
	defer fmt.Println("Fuck--001")
	defer fmt.Println("Suck--002")
	defer fmt.Println("Suck--003")
}
func testTime() {
	now := time.Now()
	chinaLoc, err := time.LoadLocation("Asia/Chongqing")
	if err != nil {
		fmt.Println(err.Error())
	}
	chinaTime := now.In(chinaLoc)
	fmt.Println(now)
	fmt.Println(chinaTime)
}
func simple(i int) {
	fmt.Println(i)
}
func calc() {
	i := 0
	for {
		i = i + 1
		i = i * 2
		if i > 2 {
			i = i + 3
		} else {
			i = i * 7
		}
		i = i * i
		if i > 100000000 {
			i = i / 1000000
		}
		i = i + 1
		i = i * 2
		if i > 2 {
			i = i + 3
		} else {
			i = i * 7
		}
		i = i * i
		if i > 100000000 {
			i = i / 1000000
		}
		i = i + 1
		i = i * 2
		if i > 2 {
			i = i + 3
		} else {
			i = i * 7
		}
		i = i * i
		if i > 100000000 {
			i = i / 1000000
		}
		i = i + 1
		i = i * 2
		if i > 2 {
			i = i + 3
		} else {
			i = i * 7
		}
		i = i * i
		if i > 100000000 {
			i = i / 1000000
		}
		i = i + 1
		i = i * 2
		if i > 2 {
			i = i + 3
		} else {
			i = i * 7
		}
		i = i * i
		if i > 100000000 {
			i = i / 1000000
		}
		i = i + 1
		i = i * 2
		if i > 2 {
			i = i + 3
		} else {
			i = i * 7
		}
		i = i * i
		if i > 100000000 {
			i = i / 1000000
		}
		// time.Sleep(time.Microsecond * 11)
		fmt.Println(i)
	}
}

func tCalc() {

	go calc()
	go calc()
	go calc()
	go calc()
	go calc()
	go calc()
	// calc()

}

// func tio() {
// 	f1, _ := os.Create("./output1.txt") //创建文件
// 	f2, _ := os.Create("./output2.txt") //创建文件
// 	f3, _ := os.Create("./output3.txt") //创建文件
// 	f4, _ := os.Create("./output4.txt") //创建文件
// 	f5, _ := os.Create("./output5.txt") //创建文件
// 	f6, _ := os.Create("./output6.txt") //创建文件
// 	f7, _ := os.Create("./output7.txt") //创建文件
// 	f8, _ := os.Create("./output8.txt") //创建文件

// }
